package Utils;

import java.util.Arrays;

public class SystemDemo {
    public static void main(String[] args) {
        // copy array
        int[] a = { 7, 8, 9, 10, 11 };
        int[] b = { 1, 2, 3, 4, 5, 6 };
        System.arraycopy(a, 1, b, 2, 3);
        System.out.println(Arrays.toString(b));
        // system info and operation
        System.out.println("current time: " + System.currentTimeMillis());
        System.out.println("all system info: " + System.getProperties());
        System.out.println("java version: " + System.getProperty("java.version"));
        System.gc();
        System.exit(0);
    }
}
